import SvgIcon from './svgIcon/index.vue'
import Category from './Category/index.vue'
const allGloablComponents = { SvgIcon, Category }
//引入element-plus提供全部的图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
export default {
  //务必叫做install方法
  install(app) {
    //注册项目全部的全局组件
    Object.keys(allGloablComponents).forEach((key) => {
      //  祖册为全局组件
      app.component(key, allGloablComponents[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
